﻿@model IEnumerable<DAO.Category>
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th>Name
        </th>
        <th>Description
        </th>
    </tr>
    <tr>
        <td>Все товары
        </td>
        <th>Товары всех категорий
        </th>
        <th>
            @Html.ActionLink("Details", "Details")
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Description)
            </td>
            <td>
                @Html.ActionLink("Details", "Details", new { id = item.Id })
            </td>
        </tr>
    }

</table>
